package com.buka.api;

import com.buka.request.LockProductRequest;
import com.buka.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient("product-service")
public interface StockApi {

    @PostMapping("/api/stock/v1/reduce")
    public JsonData reduce(LockProductRequest request);

}
